Skip to content

Conversation

@alextwoods
Copy link
Contributor

@alextwoods alextwoods commented Mar 6, 2025

Description of changes:
Based on internal discussion, use the CRT HTTP Client as the default for all event streams - single and bi-directional. This provides better forwards compatibility when a service moves from single directional event streams to bi-directional, but is not potentially the right long term solution.

This PR also adds the default HTTP client as an explicit dependency to improve the out of the box experience.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@alextwoods alextwoods requested a review from a team as a code owner March 6, 2025 23:17
Copy link
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@alextwoods alextwoods merged commit 5369a62 into smithy-lang:develop Mar 6, 2025
2 checks passed
@alextwoods alextwoods deleted the crt_only branch March 6, 2025 23:26
Comment on lines +150 to +151
writer.addDependency(SmithyPythonDependency.SMITHY_HTTP);
writer.addDependency(SmithyPythonDependency.AIO_HTTP);
Copy link
Contributor

@nateprewitt nateprewitt Mar 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rereading this, I think this is slightly incorrect, but assuming the other conditional triggers now, it isn't a hard blocker.

What we want this to look like eventually is:

smithy-http[awscrt]
or
smithy-http[aiohttp]

where the http client version is declared in smithy-http and we're not taking additional dependencies. I think we can track that as follow up work, I'm not sure .withOptionalDependencies("aiohttp") was actually working before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants